package com.jumi.microservice.yzhpay.pay.order;

import com.jumi.microservice.yzhpay.constant.ConfigPath;
import com.jumi.microservice.yzhpay.constant.OrderPrefixEnum;
import com.jumi.microservice.yzhpay.dto.request.WxpayOrderRequest;
import com.jumi.microservice.yzhpay.pay.BasePay;
import com.jumi.microservice.yzhpay.util.OrderUtil;
import com.jumi.microservice.yzhpay.util.Property;

public class WxpayOrder extends BasePay<WxpayOrderRequest> {

    @Override
    public WxpayOrderRequest assembleParam() {
        return WxpayOrderRequest.builder()
                .order_id(OrderUtil.getOrderId(OrderPrefixEnum.WXPAY_ORDER.getValue()))
                .dealer_id(Property.getProperties(ConfigPath.YZH_DEALERID))
                .broker_id(Property.getProperties(ConfigPath.YZH_BROKERID))
                .real_name("董世南")
                .id_card("372922199602014500")
                .openid("wxpayOrder")
                .pay("0.01")
                .notes("备注")
                .pay_remark("测试数据")
                .notify_url(Property.getProperties(ConfigPath.YZH_BACKNOTIFY_URL))
                .wx_app_id("")
                .wxpay_mode("transfers")
                .build();
    }

}
